#-------------------------------------------------
#
# Project created by QtCreator 2022-08-03T14:29:51
#
#-------------------------------------------------

QT       += core gui sql xml

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = endoscopeApp
TEMPLATE = app

target.path=/home/root
INSTALLS = target

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
CONFIG += force_debug_info

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

CONFIG += c++11

CC_ENVIRONMENT_VARIABLE = $$system(echo $CC)
    contains(CC_ENVIRONMENT_VARIABLE, arm-linux-gnueabihf-gcc) {
    DEFINES += arm
    LIBS += -ldrm_omap -ldrm
    INCLUDEPATH +=  $(SDK_PATH_TARGET)/usr/include/libdrm \
                $(SDK_PATH_TARGET)/usr/include/omap

    LIBS += -lgstvideo-1.0  -lgobject-2.0 -lglib-2.0 -lgstreamer-1.0 -lgstaudio-1.0 -lgstallocators-1.0
    INCLUDEPATH +=  $(SDK_PATH_TARGET)/usr/include/gstreamer-1.0 \
                    $(SDK_PATH_TARGET)/usr/include/gstreamer-1.0/include \
                    $(SDK_PATH_TARGET)/usr/include/glib-2.0 \
                    $(SDK_PATH_TARGET)/usr/include/glib-2.0/include \
                    $(SDK_PATH_TARGET)/usr/lib/glib-2.0/include \
                    $(SDK_PATH_TARGET)/usr/lib/gstreamer-1.0/include

    LIBS += -lopencv_core -lopencv_videoio -lopencv_imgcodecs -lopencv_imgproc -lopencv_highgui

    include($$PWD/01_plugin/fpgaPlugin/fpga.pri)
    include($$PWD/01_plugin/mppPlugin/mpp.pri)
    include($$PWD/01_plugin/mcuPlugin/mcu.pri)
    include($$PWD/01_plugin/miscPlugin/pInput/pInput.pri)
}

INCLUDEPATH += 03_widgetHandler \
    06_ui/01_bootUi \
    06_ui/02_loginUi \
    06_ui/03_homeUi \
    04_runtimeData \
    06_ui/04_imageSettingUi \
    06_ui/00_custom \
    06_ui/05_systemSettingUi \
    06_ui/06_medicalInfoUi/addPatientUi \
    06_ui/06_medicalInfoUi/database \
    06_ui/06_medicalInfoUi/queryPatientUi \
    06_ui/06_medicalInfoUi/patientInfoUi \
    06_ui/06_medicalInfoUi/modifyPatientUi \
    06_ui/06_medicalInfoUi/photoPlayerUi \
    06_ui/06_medicalInfoUi/videoPlayerUi \
    06_ui/07_dialogUi \
    02_utility \
    06_ui/08_engineerUi \
    05_worker/exportWork \
    05_worker/resetWork \
    05_worker/updateWork \
    05_worker/mcuWork \
    05_worker/authorityWork \
    05_worker/screenshotWork

RESOURCES += \
    00_resource/resource.qrc

FORMS += \
    MainWidget.ui \
    06_ui/01_bootUi/BootUi.ui \
    06_ui/02_loginUi/LoginUi.ui \
    06_ui/03_homeUi/HomeUi.ui \
    06_ui/04_imageSettingUi/ImageSettingUi.ui \
    06_ui/00_custom/ImageSettingItem.ui \
    06_ui/05_systemSettingUi/SystemSettingUi.ui \
    06_ui/06_medicalInfoUi/addPatientUi/AddPatientUi.ui \
    06_ui/06_medicalInfoUi/queryPatientUi/QueryPatientUi.ui \
    06_ui/00_custom/PatientRecordItem.ui \
    06_ui/06_medicalInfoUi/patientInfoUi/PatientInfoUi.ui \
    06_ui/06_medicalInfoUi/modifyPatientUi/ModifyPatientUi.ui \
    06_ui/06_medicalInfoUi/photoPlayerUi/PhotoPlayerUi.ui \
    06_ui/06_medicalInfoUi/videoPlayerUi/VideoPlayerUi.ui \
    06_ui/07_dialogUi/HintDialog.ui \
    06_ui/08_engineerUi/EngineerUi.ui \
    05_worker/exportWork/ExportDialog.ui \
    05_worker/resetWork/ResetFactoryDialog.ui \
    05_worker/updateWork/UpdateDialog.ui \
    05_worker/authorityWork/AuthorityDialog.ui

HEADERS += \
    06_ui/06_medicalInfoUi/patientInfoUi/FilePaging.h \
    App.h \
    MainWidget.h \
    03_widgetHandler/AppLog.h \
    03_widgetHandler/BaseWidget.h \
    03_widgetHandler/WidgetHandler.h \
    03_widgetHandler/WidgetId.h \
    04_runtimeData/BootSetting.h \
    06_ui/01_bootUi/BootUi.h \
    06_ui/02_loginUi/LoginUi.h \
    06_ui/03_homeUi/HomeUi.h \
    06_ui/04_imageSettingUi/ImageSettingUi.h \
    06_ui/00_custom/ImageSettingItem.h \
    04_runtimeData/ImageSetting.h \
    06_ui/05_systemSettingUi/SystemSettingUi.h \
    04_runtimeData/MiscData.h \
    06_ui/06_medicalInfoUi/addPatientUi/AddPatientUi.h \
    06_ui/06_medicalInfoUi/database/Database.h \
    06_ui/06_medicalInfoUi/database/MedicalInfo.h \
    06_ui/06_medicalInfoUi/queryPatientUi/QueryPatientUi.h \
    06_ui/00_custom/PatientRecordItem.h \
    06_ui/06_medicalInfoUi/patientInfoUi/PatientInfoUi.h \
    06_ui/06_medicalInfoUi/modifyPatientUi/ModifyPatientUi.h \
    06_ui/06_medicalInfoUi/photoPlayerUi/PhotoPlayerUi.h \
    06_ui/06_medicalInfoUi/videoPlayerUi/VideoPlayerUi.h \
    06_ui/07_dialogUi/HintDialog.h \
    06_ui/06_medicalInfoUi/patientInfoUi/Medio.h \
    02_utility/FileUtility.h \
    02_utility/StorageUtility.h \
    06_ui/08_engineerUi/EngineerUi.h \
    05_worker/exportWork/ExportDialog.h \
    05_worker/exportWork/ExportWorker.h \
    05_worker/resetWork/ResetFactoryDialog.h \
    05_worker/resetWork/ResetFactoryWorker.h \
    02_utility/LogoUtility.h \
    05_worker/updateWork/UpdateDialog.h \
    05_worker/updateWork/UpdateWorker.h \
    05_worker/mcuWork/McuWorker.h \
    05_worker/authorityWork/AuthorityDialog.h \
    05_worker/authorityWork/AuthorityWorker.h \
    05_worker/updateWork/McuUpdateWorker.h \
    05_worker/screenshotWork/ScreenshotWorker.h \
    SensorInfo.h

SOURCES += \
    06_ui/06_medicalInfoUi/patientInfoUi/FilePaging.cpp \
    App.cpp \
    SensorInfo.cpp \
    main.cpp \
    MainWidget.cpp \
    03_widgetHandler/BaseWidget.cpp \
    03_widgetHandler/WidgetHandler.cpp \
    04_runtimeData/BootSetting.cpp \
    06_ui/01_bootUi/BootUi.cpp \
    06_ui/02_loginUi/LoginUi.cpp \
    06_ui/03_homeUi/HomeUi.cpp \
    06_ui/04_imageSettingUi/ImageSettingUi.cpp \
    06_ui/00_custom/ImageSettingItem.cpp \
    04_runtimeData/ImageSetting.cpp \
    06_ui/05_systemSettingUi/SystemSettingUi.cpp \
    04_runtimeData/MiscData.cpp \
    06_ui/06_medicalInfoUi/addPatientUi/AddPatientUi.cpp \
    06_ui/06_medicalInfoUi/database/Database.cpp \
    06_ui/06_medicalInfoUi/queryPatientUi/QueryPatientUi.cpp \
    06_ui/00_custom/PatientRecordItem.cpp \
    06_ui/06_medicalInfoUi/patientInfoUi/PatientInfoUi.cpp \
    06_ui/06_medicalInfoUi/modifyPatientUi/ModifyPatientUi.cpp \
    06_ui/06_medicalInfoUi/photoPlayerUi/PhotoPlayerUi.cpp \
    06_ui/06_medicalInfoUi/videoPlayerUi/VideoPlayerUi.cpp \
    06_ui/07_dialogUi/HintDialog.cpp \
    06_ui/06_medicalInfoUi/patientInfoUi/Medio.cpp \
    02_utility/FileUtility.cpp \
    02_utility/StorageUtility.cpp \
    06_ui/08_engineerUi/EngineerUi.cpp \
    05_worker/exportWork/ExportDialog.cpp \
    05_worker/exportWork/ExportWorker.cpp \
    05_worker/resetWork/ResetFactoryDialog.cpp \
    05_worker/resetWork/ResetFactoryWorker.cpp \
    02_utility/LogoUtility.cpp \
    05_worker/updateWork/UpdateDialog.cpp \
    05_worker/updateWork/UpdateWorker.cpp \
    05_worker/mcuWork/McuWorker.cpp \
    06_ui/04_imageSettingUi/ItemMap.cpp \
    05_worker/authorityWork/AuthorityDialog.cpp \
    05_worker/authorityWork/AuthorityWorker.cpp \
    05_worker/updateWork/McuUpdateWorker.cpp \
    05_worker/screenshotWork/ScreenshotWorker.cpp

TRANSLATIONS += \
    00_resource/translate/tspm160_En.ts

DISTFILES += \
    00_resource/translate/tspm160_En.qm
